package cc.iteachyou.template.taglib;

import cc.iteachyou.template.dom.VirtualDOMNode;
import cc.iteachyou.template.taglib.result.DirectiveResult;
import cn.hutool.extra.expression.ExpressionEngine;
import cn.hutool.extra.expression.engine.spel.SpELEngine;

import java.util.Map;
import java.util.Optional;

public interface IDirectiveHandler {
    final ExpressionEngine engine = new SpELEngine();

    Optional<DirectiveResult> handler(VirtualDOMNode.RendererVirtualDOMAttrContext ctx, Map<String, Object> data);
}
